package Accessors;

import Callbacks.AbstractCallback;
import Models.KegReport;
import Presenter.KegReportPresenter;
import android.app.ProgressDialog;
import android.content.Context;

@SuppressWarnings("rawtypes")
public class KegReportAccessor extends AbstractAccessor<KegReport,KegReportPresenter,AbstractCallback> {
	private final String NAME = "kegreport";
	private final String DIALOG = "Package Type Report";
	
	private final static KegReportPresenter presenter = new KegReportPresenter();
	
	//Modal dialog variable.
	ProgressDialog modalDialog = null;
	
	public KegReportAccessor(AbstractCallback callback){
		super(presenter, callback);
	}
	
	//Public access functions.
	public void getKegReport(final Context context, final int custID, final int pkgID, final int beerID){
		String dialog = "Loading " + DIALOG + " List...";
		String rfString = NAME + "/" + Integer.toString(custID) + "/" + Integer.toString(pkgID) + "/" + Integer.toString(beerID);
		super.getAllItems(context, dialog, rfString);
	}
}
